package com.peas.platform.module.icims.base.auth.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

// 角色
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_role`")
public class RolePo extends BasePo {

    //角色类型
    @Size(max = 20, message = "角色类型不能超过20个字符")
    @TableField(value = "`role_type`", jdbcType = JdbcType.VARCHAR)
    private String roleType;

    //角色编码
    @Size(max = 50, message = "角色编码不能超过50个字符")
    @TableField(value = "`role_code`", jdbcType = JdbcType.VARCHAR)
    private String roleCode;

    //角色名称
    @Size(max = 200, message = "角色名称不能超过200个字符")
    @TableField(value = "`role_name`", jdbcType = JdbcType.VARCHAR)
    private String roleName;

    //状态
    @Size(max = 20, message = "状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

}
